package com.xu.chapter02;

/**
 *
 * @author xudenghui
 * @create 2023-06-16 11:15
 **/
public class Chapter2Test {
    public static void main(String[] args) {
        Person xc = new Person("小菜");
        System.out.println("第一种装扮:");
        Sneakers pqx = new Sneakers();
        BigTrouser kk = new BigTrouser();
        TShirts dtx = new TShirts();

        pqx.decorate(xc);
        kk.decorate(pqx);
        dtx.decorate(kk);
        dtx.show();
    }
}
